<div id="taskList">
<h3><center>Tasks</center></h3>
<ul id="taskNav">
  <% Task.find(:all).each do |task| %>
    <li><%= link_to task.description, task_path(task) %>
      <% if controller.controller_name.downcase.eql?("home") %>
      <ul>
        <li><%= link_to "completed", task, :confirm => 'Are you sure?', :method => :delete %>
      </ul>
    </li>
    <% end %>
  <% end %>
</ul>
</div>
